package com.dragon.wangyiwork.service;

import com.dragon.wangyiwork.entity.Commodity;

import java.util.List;

public interface CommodityService {

    public List<Commodity> getAllCommodity();

    public List<Commodity> getNotBuyCommodity();

    public Commodity getCommodityById(Integer id);

    public Commodity publicCommodity(Commodity commodity);

    public List<Commodity> getAccount();

    public List<Commodity> getSettleAccount();

    public Commodity addCart(Commodity commodity);

    public void buyCommodity(Commodity[] commodityList);

    public Commodity updateCommodity(Commodity commodity);

    public void deleteCommodityById(Integer id);
}
